package org.springblade.modules.repair.dto.statistical;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @Description
 * @Author ysq
 * @Date 2022/8/26
 **/
@Data
public class DayWorkDetailDTO {

	@NotEmpty(message = "用户列表不能为空")
	@ApiModelProperty(value = "用户列表")
	private List<Long> userIds;

	@JsonFormat(pattern = "yyyy-MM-dd")
	@ApiModelProperty(value = "日期")
	private Date date;

	@JsonFormat(pattern = "yyyy-MM-dd")
	@ApiModelProperty(value = "开始时间")
	private Date beginDate;

	@JsonFormat(pattern = "yyyy-MM-dd")
	@ApiModelProperty(value = "结束时间")
	private Date endDate;
}
